package com.ruoyi.club.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.club.mapper.ClubActivityMapper;
import com.ruoyi.club.domain.ClubActivity;
import com.ruoyi.club.service.IClubActivityService;

/**
 * 社团活动Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-11
 */
@Service
public class ClubActivityServiceImpl implements IClubActivityService 
{
    @Autowired
    private ClubActivityMapper clubActivityMapper;

    /**
     * 查询社团活动
     * 
     * @param id 社团活动主键
     * @return 社团活动
     */
    @Override
    public ClubActivity selectClubActivityById(Long id)
    {
        return clubActivityMapper.selectClubActivityById(id);
    }

    /**
     * 查询社团活动列表
     * 
     * @param clubActivity 社团活动
     * @return 社团活动
     */
    @Override
    public List<ClubActivity> selectClubActivityList(ClubActivity clubActivity)
    {
        return clubActivityMapper.selectClubActivityList(clubActivity);
    }

    /**
     * 新增社团活动
     * 
     * @param clubActivity 社团活动
     * @return 结果
     */
    @Override
    public int insertClubActivity(ClubActivity clubActivity)
    {
        return clubActivityMapper.insertClubActivity(clubActivity);
    }

    /**
     * 修改社团活动
     * 
     * @param clubActivity 社团活动
     * @return 结果
     */
    @Override
    public int updateClubActivity(ClubActivity clubActivity)
    {
        return clubActivityMapper.updateClubActivity(clubActivity);
    }

    /**
     * 批量删除社团活动
     * 
     * @param ids 需要删除的社团活动主键
     * @return 结果
     */
    @Override
    public int deleteClubActivityByIds(Long[] ids)
    {
        return clubActivityMapper.deleteClubActivityByIds(ids);
    }

    /**
     * 删除社团活动信息
     * 
     * @param id 社团活动主键
     * @return 结果
     */
    @Override
    public int deleteClubActivityById(Long id)
    {
        return clubActivityMapper.deleteClubActivityById(id);
    }
}
